package com.gzdh.tang.config.weixin;

public class NumUtil {

	public static String getRomNum(int num) {
		String[] vec = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
		num = num <= 0 ? 1 : num;
		StringBuffer str = new StringBuffer(10);
		for (int i = 0; i < num; i++) {
			int r1 = Long.valueOf(Math.round(Math.random() * (vec.length - 1))).intValue();
			str.append(vec[r1]);
		}
		return str.toString();

	}
}
